﻿using System;
using Icinetic.FeedCategorySample.ViewModel;
using Windows.UI.Xaml.Data;

namespace Icinetic.FeedCategorySample.Common.Converters
{
    public class BackgroundColorConverter : IValueConverter
    {
        public BackgroundColorConverter() { }

        public object Convert(object value, Type targetType, object parameter, string language)
        {
            int state = (int)value;
            if (state == (int)MainPageStateEnum.Cover)
                return "Black";
            else
                return "Transparent";
        }

        public object ConvertBack(object value, Type targetType, object parameter, string language)
        {
            throw new NotImplementedException();
        }
    }
}
